from tkinter import *
x = int(input())
y = int(input())
n = int(input())
root = Tk()
root.geometry("500x500")



canvas = Canvas(bg="white", width=500, height=500)
canvas.pack(anchor=CENTER, expand=1)

canvas.create_rectangle(x * n, y * n, (x+30) * n, (y+30) * n, fill="blue", outline="black")
canvas.create_rectangle(x * n, (y+30) * n, (x+30) * n, (y+60) * n, fill="blue", outline="black")
canvas.create_rectangle((x+30) * n, (y+30) * n, (x+60) * n, (y+60) * n, fill="blue", outline="black")
canvas.create_rectangle(x * n, (y+60) * n, (x+30) * n, (y+90) * n, fill="blue", outline="black")
root.mainloop()
